package hjslm.Service.Impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import framework.base.common.Pager;
import hjslm.Bean.PictureBean;
import hjslm.DAO.IPictureDAO;
import hjslm.Service.IPictureService;

@Service
public class PictureServiceImpl implements IPictureService{
	@Autowired
	IPictureDAO dao;
	
	@Override
	public PictureBean selectOne(PictureBean bean) {
		return dao.selectOne(bean);
	}

	@Override
	public List<PictureBean> selectList(PictureBean bean) {
		return dao.selectList(bean);
	}

	@Override
	public int update(PictureBean bean) {
		return dao.update(bean);
	}

	@Override
	public int insert(PictureBean bean) {
		return dao.insert(bean);
	}

	@Override
	public int delete(PictureBean bean) {
		return dao.delete(bean);
	}

	//分页查询功能
	@Override
	public Pager<PictureBean> selectPage(PictureBean bean, Pager<PictureBean> pager) {
		return dao.selectPage(bean, pager);
	}
	

}
